package com.lottery.ruok.lottrey.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.lottery.ruok.lottrey.R;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by ASUS on 2017/8/8.
 *
 * 玩法提示
 */

public class PlayTipActivity extends BaseActivity {
    @BindView(R.id.help)
    TextView help;
    @BindView(R.id.tips)
    TextView tips;
    @BindView(R.id.example)
    TextView example;
    @BindView(R.id.zhongjiangshuoming)
    TextView zhongjiangshuoming;
    @BindView(R.id.fanli)
    TextView fanli;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_play_tip);
        ButterKnife.bind(this);

        init();
    }

    private void init() {
        String helpString = getIntent().getStringExtra("help");
        String tipsString = getIntent().getStringExtra("tips");
        String exampleString = getIntent().getStringExtra("example");

        tips.setText(helpString);
        help.setText(tipsString);
        example.setText(exampleString);

        if(helpString == null || helpString.equals("")){
            tips.setVisibility(View.GONE);
            zhongjiangshuoming.setVisibility(View.GONE);
        }

        if(exampleString == null || exampleString.equals("")){
            example.setVisibility(View.GONE);
            fanli.setVisibility(View.GONE);
        }
    }
}
